#ifndef __LOG_H__
#define __LOG_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define IN_RADAR_LOG  "in_radar"
#define OUT_RADAR_LOG "out_radar"

#define NEW_LINE_COUNT                   20
#define WRITE_LOG(filename, format, ...) write_log(filename, format, __VA_ARGS__, NULL)

char *get_current_time_string(char *time_str, size_t size);
void print_current_time(void);
void print_hex_buffer(const char *buf, int len);
void write_log(const char *filename, const char *format, ...);
void write_hex_log(const char *filename, const char *title, const char *buf, int len);
int copy_file_with_overwrite(const char *srcFile, const char *destFile);
#endif  // !__LOG_H__
